package com.wgworkshop.pems.repository;

import com.wgworkshop.pems.entity.UserEntity;
import org.springframework.data.repository.CrudRepository;

/**
 * 用户库。
 * Created by lcwang on 2018/3/23.
 */
public interface UserRepository extends CrudRepository<UserEntity, Long> {
    UserEntity findFirstByAccountAndPassword(String account, String password);

    UserEntity findFirstByAccount(String account);
}
